component persistent="true" accessors="true" {
    property name="id" generator="native" ormtype="integer" ;
	property name="loginname" ormtype="string" length="30";
	property name="loginpassword" ormtype="string" length="50";
	property name="paypassword" ormtype="string" length="50";
	property name="nickname" ormtype="string" length="30";
	property name="truename" ormtype="string" length="30";
	property name="email" ormtype="string" length="100";

	property name="question" ormtype="string" length="50";
	property name="answer" ormtype="string" length="50";

	property name="birthday" ormtype="timestamp";
	property name="location" ormtype="string" length="50";

	property name="sex" ormtype="integer" length="1" default="1" ;
	property name="money" ormtype="float" default="0" ;
	property name="frozenmoney" ormtype="float" default="0" ;
	property name="state" ormtype="integer"  length="1";
	property name="mobile" ormtype="string" length="30";
	property name="phone" ormtype="string" length="30";
	property name="address" ormtype="string" length="200";
	property name="zip" ormtype="string" length="10";


	property name="loginamout" ormtype="integer" length="11" default="0" ;
	property name="loginfailtureamount" ormtype="integer" length="11" default="0" ;
	property name="lastip" ormtype="string" length="50";

	property name="lastupdatetime" ormtype="timestamp";
	property name="lastlogindatatime" ormtype="timestamp";
	property name="lastloginfailturedatatime" ormtype="timestamp";

	property name="isemailvaild" ormtype="integer"  length="1" default="0" ;

    property name="created" ormtype="timestamp";
    property name="edited" ormtype="timestamp";

    public string function getSexName(){
		var sexName = "";
		if (getSex() == 1){
			sexName = "男";
		}else{
			sexName = "女";
		}
		return sexName;
	}
}